import request from '@/utils/request'

// 燃气产品列表
export function getGasProductList(data = {}) {
  return request.post('/enterprise/product/gas/page', data)
}

// 发布燃气产品
export function creatGasProduct(data = {}) {
  return request.post('/enterprise/product/gas/create', data)
}

// 获取燃气产品详情
export function getGasProductDetail(params = {}) {
  return request.get('/enterprise/product/gas/detail', { params })
}

// 修改燃气产品状态
export function editGasProductStatus(data = {}) {
  return request.post('/enterprise/product/gas/editStatus', data)
}

// 编辑燃气产品
export function editGasProduct(data = {}) {
  return request.post('/enterprise/product/gas/edit', data)
}

// 删除燃气产品
export function deleteGasProduct(params = {}) {
  return request.get('/enterprise/product/gas/delete', { params })
}

// 发布产品
export function createProduct(data = {}) {
  return request.post('/enterprise/product/create', data)
}

// 获取产品草稿
export function getProductDraft(data = {}) {
  return request.post('/enterprise/product/getDraft', data)
}

// 获取产品详情
export function getProductDetail(params = {}) {
  return request.get('/enterprise/product/detail', { params })
}

// 获取审核中的产品
export function getApproveList(params = {}) {
  return request.get('/enterprise/product/selectApprove', { params })
}

// 获取仓库产品列表
export function getProductList(data = {}) {
  return request.post('/enterprise/productStore/page', data)
}

// 删除产品
export function deleteProduct(params = {}) {
  return request.get('/enterprise/product/delete', { params })
}

// 修改产品状态
export function editProductStatus(data = {}) {
  return request.post('/enterprise/product/editStatus', data)
}
